package com.simon.nvwo.modules.designerpattern.iterator;

import java.io.UnsupportedEncodingException;

/**
 * @author zhaoyiwu
 * @create 2018-03-08 9:38
 **/
public class Application {

    public static void main(String[] args){


        ChineseFoodItem item=new ChineseFoodItem();

        item.add("宫保鸡丁");
        item.add("孜然羊肉");
        item.add("水煮鱼");
        item.add("北京烤鸭");


        Iterator iterator=item.getIterator();

        while(iterator.hasNext()){

            System.out.println(iterator.next());
        }
    }
}
